package com.cloud.controller;

import com.cloud.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

//http://localhost:8011/save
@RestController
public class OrderController {

    @Autowired
    private OrderService orderService;

    @GetMapping("/save")
    public String save() {
        this.orderService.save();
        return "success";
    }
}
